package cn.iocoder.yudao.module.wine.api;

import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
import cn.iocoder.yudao.module.wine.api.dto.TeamTypeDTO;
import cn.iocoder.yudao.module.wine.api.dto.WineConfigDTO;
import cn.iocoder.yudao.module.wine.dal.dataobject.config.WineConfigDO;
import cn.iocoder.yudao.module.wine.dal.dataobject.teamtype.TeamTypeDO;
import cn.iocoder.yudao.module.wine.service.config.WineConfigService;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

import javax.annotation.Resource;

/**
 * @author zyc
 * @createDate 2024/7/29 11:52
 */
@Service
@Validated
public class WineConfigApiImpl implements WineConfigApi{

    @Resource
    private WineConfigService wineConfigService;

    @Override
    public WineConfigDTO getWineConfigInfo() {
        WineConfigDO wineConfig = wineConfigService.getOne();
        return BeanUtils.toBean(wineConfig, WineConfigDTO.class);
    }

}
